import http from "@/api";

// 获取接口分类树
export const getInterfaceCatTreeApi = (params) => {
    return http.get(`/api/interface/interfaceCat/`, params);
};

export const postInterfaceCatApi = (params) => {
    return http.post(`/api/interface/interfaceCat/`, params);
};

// 获取接口列表的接口
export const getInterfaceListApi = (params) => {
    return http.get(`/api/interface/interfaceTest/`, params);
}

// 新增接口
export const postInterfaceApi = (params) => {
    return http.post(`/api/interface/interfaceTest/`, params);
};


// export const getInterfaceEnvList = (params) => {
//     return http.get(`/api/interface/interfaceEnvList/${params}`);
// };

export const getInterfaceEnvListApi = (params) => {
    return http.get(`/api/interface/InterfaceEnv/`, params);
};

export const getInterfaceEnvApi = (params) => {
    return http.get(`/api/interface/InterfaceEnv/${params}/`);
};

export const postInterfaceEnvApi = (params) => {
    return http.post(`/api/interface/InterfaceEnv/`, params);
};

export const RunInterfaceTest = (params)=>{
    return http.post(`/api/interface/runInterfaceTest/`, params);
}



